package com.laixu.service.impl;

public class BookServiceImpl {
    public void addBook(String bookName) {
        System.out.println("添加书籍：" + bookName);
    }

    public void deleteBook(int bookId) {
        System.out.println("删除书籍ID：" + bookId);
    }

    public String findBook(int bookId) {
        if (bookId == 0) {
            throw new RuntimeException("书籍ID不能为0");
        }
        return "书籍" + bookId;
    }
}